<?php
/* This file is part of a copyrighted work; it is distributed with NO WARRANTY.
 * See the file COPYRIGHT.html for more details.
 */
 
  require_once("../shared/common.php");
  $tab = "school";
  $restrictToMbrAuth = TRUE;
  $nav = "delete_section";
  require_once("../shared/logincheck.php");
  require_once("../classes/School.php");
  require_once("../classes/SchoolQuery.php");
  require_once("../classes/Localize.php");
  $loc = new Localize(OBIB_LOCALE,$tab);

  $schoolid = $_GET["schoolid"];

  #****************************************************************************
  #*  Getting member name
  #****************************************************************************
  $schoolQ = new SchoolQuery();
  $schoolQ->connect();
  $school = $schoolQ->get($schoolid);
  $schoolQ->close();
  $schoolName = $school->getName()." ".$school->getCue();
  
  #**************************************************************************
  #*  Show confirm page
  #**************************************************************************
  require_once("../shared/header.php");

?>
<center>
<form name="delschool" method="POST" action="../school/school_view.php?schoolid=<?php echo HURL($schoolid);?>&amp;reset=Y">
<?php echo $loc->getText("schoolDelConfirmMsg",array("name"=>$schoolName)); ?>
<br><br>
      <input type="button" onClick="self.location='../school/school_del.php?schoolid=<?php echo H(addslashes(U($schoolid)));?>&amp;name=<?php echo H(addslashes(U($schoolName)));?>'" value="<?php echo $loc->getText("schoolDelete"); ?>" class="button">
      <input type="submit" value="<?php echo $loc->getText("schoolCancel"); ?>" class="button">
</form>
</center>
<?php 
  include("../shared/footer.php");
?>
